package study.proxy.myproxy.staticproxy;

import java.util.UUID;

public class STIdConfirm implements IdConfirm {
    @Override
    public String apply() {
        String uuid = UUID.randomUUID().toString();

        System.out.println("生成applyId:"+ UUID.randomUUID());
        return uuid;
    }

    @Override
    public boolean doIdentify(String applyKey) {

        if(applyKey.endsWith("1")){
            return true;
        }

        return false;
    }
}
